package com.ruoyi.check.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.check.mapper.ECheckListFormYichangMapper;
import com.ruoyi.check.domain.ECheckListFormYichang;
import com.ruoyi.check.service.IECheckListFormYichangService;

/**
 * 异常信息Service业务层处理
 * 
 * @author hugh.sun
 * @date 2023-05-30
 */
@Service
public class ECheckListFormYichangServiceImpl implements IECheckListFormYichangService 
{
    @Autowired
    private ECheckListFormYichangMapper eCheckListFormYichangMapper;

    /**
     * 查询异常信息
     * 
     * @param id 异常信息主键
     * @return 异常信息
     */
    @Override
    public ECheckListFormYichang selectECheckListFormYichangById(Long id)
    {
        return eCheckListFormYichangMapper.selectECheckListFormYichangById(id);
    }

    /**
     * 查询异常信息列表
     * 
     * @param eCheckListFormYichang 异常信息
     * @return 异常信息
     */
    @Override
    public List<ECheckListFormYichang> selectECheckListFormYichangList(ECheckListFormYichang eCheckListFormYichang)
    {
        return eCheckListFormYichangMapper.selectECheckListFormYichangList(eCheckListFormYichang);
    }

    /**
     * 新增异常信息
     * 
     * @param eCheckListFormYichang 异常信息
     * @return 结果
     */
    @Override
    public int insertECheckListFormYichang(ECheckListFormYichang eCheckListFormYichang)
    {
        eCheckListFormYichang.setCreateTime(DateUtils.getNowDate());
        return eCheckListFormYichangMapper.insertECheckListFormYichang(eCheckListFormYichang);
    }

    /**
     * 修改异常信息
     * 
     * @param eCheckListFormYichang 异常信息
     * @return 结果
     */
    @Override
    public int updateECheckListFormYichang(ECheckListFormYichang eCheckListFormYichang)
    {
        return eCheckListFormYichangMapper.updateECheckListFormYichang(eCheckListFormYichang);
    }

    /**
     * 批量删除异常信息
     * 
     * @param ids 需要删除的异常信息主键
     * @return 结果
     */
    @Override
    public int deleteECheckListFormYichangByIds(Long[] ids)
    {
        return eCheckListFormYichangMapper.deleteECheckListFormYichangByIds(ids);
    }

    /**
     * 删除异常信息信息
     * 
     * @param id 异常信息主键
     * @return 结果
     */
    @Override
    public int deleteECheckListFormYichangById(Long id)
    {
        return eCheckListFormYichangMapper.deleteECheckListFormYichangById(id);
    }
}
